import request from '@/utils/requestUtil'

//获取买方仓库列表
export function fetchBuyOrderList(params) {
	return request({
		method: 'GET',
		url: '/order/buyOrderList',
		params: params
	})
}
//获取卖方仓库列表
export function fetchsellOrderList(params) {
	return request({
		method: 'GET',
		url: '/order/sellOrderList',
		params: params
	})
}

//获取待付款详情接口
export function getPayInfo(params) {
	return request({
		method: 'POST',
		url: '/order/payInfo',
		params: params
	})
}
//提交待付款接口
export function submitPay(params) {
	return request({
		method: 'POST',
		url: '/order/pay',
		params: params
	})
}
//获取待收款详情接口
export function confirmDetail(params) {
	return request({
		method: 'POST',
		url: '/order/confirmDetail',
		params: params
	})
}

//确认收款接口
export function confirmOrder(params) {
	return request({
		method: 'POST',
		url: '/order/confirmOrder',
		params: params
	})
}